package com.example.pmxt.modules.cooperation;

import com.example.pmxt.common.BaseService;
import com.example.pmxt.domain.Cooperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CooperationService extends BaseService<CooperationMapper, Cooperation> {
    private CooperationMapper cooperationMapper;

    public CooperationService(@Autowired CooperationMapper cooperationMapper){
        this.cooperationMapper = cooperationMapper;
    }
    public List<Cooperation> selectAll(){
        return cooperationMapper.selectAll();
    }

    public int insert(Cooperation cooperation){
        return cooperationMapper.insert(cooperation);
    }


}
